<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'App',
  mounted() {
    console.log("888888")
    let token = localStorage.getItem("ADX_Token")
    let tokenId = localStorage.getItem("accountId")
    let loginName = localStorage.getItem("loginName")
    let menuList = JSON.parse(localStorage.getItem("menuList"))
    console.log(token)
    this.$store.dispatch('user/setLoginInfo', {
      token: token,
      tokenId: tokenId,
      loginName: loginName,
      menuList: menuList
    })
  }
}
</script>
